package com.sduept.bigdata.iec61850.client;

import com.beanit.iec61850bean.*;

import java.io.IOException;
import java.util.List;

public class ServerDemo {

    public static void main(String[] args) throws SclParseException, IOException {
        int port = 102;
        ServerSap serverSap = null;
        String sclFilePath = "E:\\公司文档\\项目管理\\智能录波器\\子站smcd文件\\继保\\smcdmodel_1_2021-07-15-19-53-47.smcd";
        serverSap = new ServerSap(port, 0, null, SclParser.parse1(sclFilePath), null);

        serverSap.setPort(port);
        serverSap.startListening(new ServerEventListener() {
            @Override
            public List<ServiceError> write(List<BasicDataAttribute> bdas) {
                return null;
            }

            @Override
            public void serverStoppedListening(ServerSap serverSAP) {

            }
        });
    }
}
